package pe.gob.mef.snip.preinversion.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import pe.gob.mef.snip.preinversion.dao.mybatis.CostoOpeManMapperDAO;
import pe.gob.mef.snip.preinversion.domain.CostoOpeMan;
import pe.gob.mef.snip.preinversion.service.CostoOpeManService;

@Service
public class CostoOpeManServiceImpl implements CostoOpeManService{
	
	@Autowired
	private CostoOpeManMapperDAO costoOpeManMapperDAO;
	
	public void insertar(CostoOpeMan costoOpeMan) {
		costoOpeManMapperDAO.insertar(costoOpeMan);

	}

	public void actualizar(CostoOpeMan costoOpeMan) {
		costoOpeManMapperDAO.actualizar(costoOpeMan);
	}

	public void eliminar(CostoOpeMan costoOpeMan) {
		costoOpeManMapperDAO.eliminar(costoOpeMan);
		
	}
	
	public CostoOpeMan obtener(CostoOpeMan costoOpeMan) {
		 return costoOpeManMapperDAO.obtener(costoOpeMan);
		
	}

	public List<CostoOpeMan> listar(CostoOpeMan costoOpeMan) {
		 return costoOpeManMapperDAO.listar(costoOpeMan);
	}
}
